﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Police/Police.master" AutoEventWireup="true"
    CodeFile="SquadronCaption.aspx.cs" Inherits="Police_SecurityEvaluate_SquadronCaption"
    StylesheetTheme="Content" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <ul class="topmenu">
        <li>
            <asp:DropDownList ID="ddlYear" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlYear_SelectedIndexChanged">
            </asp:DropDownList>
        </li>
        <li>
            <asp:DropDownList ID="ddlMonth" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlMonth_SelectedIndexChanged">
            </asp:DropDownList>
        </li>
        <li>
            <asp:DropDownList ID="ddlDay" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlDay_SelectedIndexChanged">
            </asp:DropDownList>
        </li>
        <li>
            <asp:LinkButton ID="lbltoday" runat="server" OnClick="lbltoday_Click">今天</asp:LinkButton>
        </li>
    </ul>
    <div style="text-align: center; line-height: 35px;">
        <asp:Label ID="lblCaption" runat="server" Font-Bold="True" Font-Size="Large"></asp:Label>
    </div>
    <div runat="server" id="ParentDiv">
        <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatColumns="7" RepeatDirection="Horizontal"
            AutoPostBack="True" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged">
            <asp:ListItem Selected="True">实力</asp:ListItem>
            <asp:ListItem>执行执务</asp:ListItem>
            <asp:ListItem>人员装备变动</asp:ListItem>
            <asp:ListItem>公差勤务</asp:ListItem>
            <asp:ListItem>警容风纪卫生检查</asp:ListItem>
            <asp:ListItem>查铺查哨</asp:ListItem>
            <asp:ListItem>值班情况</asp:ListItem>
            <asp:ListItem>临时来队亲属</asp:ListItem>
            <asp:ListItem>请假外出休假</asp:ListItem>
            <asp:ListItem>上级通知及其它重要事项</asp:ListItem>
        </asp:RadioButtonList>
        <div runat="server" id="实力" style="padding: 10px 0px;">
            <asp:GridView runat="server" ID="gvSL" OnRowDataBound="gvSL_RowDataBound" Caption="<span>各中队实力查看</span>">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:Label runat="server" ID="ID"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="单位名称">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblDepartment"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="EstabCadreCount" HeaderText="编制干部数" />
                    <asp:BoundField DataField="EstabSodierCount" HeaderText="编制士兵数" />
                    <asp:BoundField DataField="EstabTotle" HeaderText="编制人员总数" />
                    <asp:BoundField DataField="ExistCadreCount" HeaderText="现有干部数" />
                    <asp:BoundField DataField="ExistSodierCount" HeaderText="现有士兵数" />
                    <asp:BoundField DataField="ExistSodierTotal" HeaderText="现有人员总数" />
                </Columns>
                <HeaderStyle HorizontalAlign="Left" />
            </asp:GridView>
        </div>
        <div runat="server" id="执行执务" style="padding: 10px 0px;">
            <asp:GridView runat="server" ID="gvZXQK" OnRowDataBound="gvZXQK_RowDataBound" Caption="<span>各中队执行执务情况查看</span>">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:Label runat="server" ID="ID"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="单位名称">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblDepartment"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="情况查看">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblZXQK"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle HorizontalAlign="Left" />
            </asp:GridView>
        </div>
        <div runat="server" id="人员装备变动" style="padding: 10px 0px;">
            <asp:GridView runat="server" ID="gvChanges" Caption="<span>各中队人员装备变动情况查看</span>"
                OnRowDataBound="gvChanges_RowDataBound">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:Label runat="server" ID="ID"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="单位名称">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblDepartment"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="情况查看">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblQK"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle HorizontalAlign="Left" />
            </asp:GridView>
        </div>
        <div runat="server" id="公差勤务" style="padding: 10px 0px;">
            <asp:GridView runat="server" ID="gvPulickWork" Caption="<span>各中队公差勤务情况查看</span>"
                OnRowDataBound="GridView1_RowDataBound">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:Label runat="server" ID="ID"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="单位名称">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblDepartment"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="情况查看">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblZXQK"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle HorizontalAlign="Left" />
            </asp:GridView>
        </div>
        <div runat="server" id="警容风纪卫生检查" style="padding: 10px 0px;">
            <asp:GridView runat="server" ID="gvEthos" Caption="<span>各中队警容风纪卫生检查情况查看</span>"
                OnRowDataBound="gvEthos_RowDataBound">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:Label runat="server" ID="ID"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="单位名称">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblDepartment"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="情况查看">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblZXQK"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle HorizontalAlign="Left" />
            </asp:GridView>
        </div>
        <div runat="server" id="查铺查哨" style="padding: 10px 0px;">
            <asp:GridView runat="server" ID="gvInspect" Caption="<span>各中队查铺查哨情况查看</span>" OnRowDataBound="gvInspect_RowDataBound">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:Label runat="server" ID="ID"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="单位名称">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblDepartment"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="情况查看">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblQK"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle HorizontalAlign="Left" />
            </asp:GridView>
        </div>
        <div runat="server" id="值班情况" style="padding: 10px 0px;">
            <asp:GridView runat="server" ID="gvDuty" Caption="<span>各中队值班情况查看</span>" OnRowDataBound="gvDuty_RowDataBound">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:Label runat="server" ID="ID"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="单位名称">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblDepartment"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="值班情况">
                        <ItemTemplate>
                            <table width="100%">
                                <tr>
                                    <td>
                                        值班员交班者：
                                    </td>
                                    <td>
                                        <%# Eval("WatchHandOver")%>
                                    </td>
                                    <td>
                                        值班员接班者：
                                    </td>
                                    <td>
                                        <%#Eval("WatchSuccessor")%>
                                    </td>
                                    <td>
                                        值日员交班者：
                                    </td>
                                    <td>
                                        <%# Eval("DayHandOver")%>
                                    </td>
                                    <td>
                                        值日员接班者：
                                    </td>
                                    <td>
                                        <%#Eval("DaySuccessor")%>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        厨房值班员交班者：
                                    </td>
                                    <td>
                                        <%# Eval("KitchenHandOver")%>
                                    </td>
                                    <td>
                                        厨房值班员接班者：
                                    </td>
                                    <td>
                                        <%#Eval("KitchenSuccessor")%>
                                    </td>
                                    <td>
                                        厨房值班员交接时间：
                                    </td>
                                    <td>
                                        <%#Eval("KitchenDate")==DBNull.Value?"": Convert.ToDateTime(Eval("KitchenDate")).ToString("hh:mm")%>
                                    </td>
                                    <td>
                                        值日员交接时间：
                                    </td>
                                    <td>
                                        <%# Eval("DayDate") == DBNull.Value ? "" : Convert.ToDateTime(Eval("DayDate")).ToString("hh:mm")%>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        组织者：
                                    </td>
                                    <td>
                                        <%#Eval("Constitutor")%>
                                    </td>
                                    <td>
                                        交接情况：
                                    </td>
                                    <td colspan="5">
                                        <%#Eval("Circs")%>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle HorizontalAlign="Left" />
            </asp:GridView>
        </div>
        <div runat="server" id="临时来队亲属" style="padding: 10px 0px;">
            <asp:GridView runat="server" ID="gvFamily" Caption="<span>各中队临时来队亲属情况查看</span>" OnRowDataBound="gvFamily_RowDataBound">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:Label runat="server" ID="ID"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="单位名称">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblDepartment"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="情况查看">
                        <ItemTemplate>
                            <asp:DataList runat="server" ID="DL" Width="100%">
                                <ItemTemplate>
                                    <table width="100%" style="border-collapse: collapse; border-color: #ccc; border-width: 0px;
                                        border-bottom: solid 1px #ccc000; padding: 0px; margin: 0px;">
                                        <tr>
                                            <td>
                                                官兵姓名：
                                            </td>
                                            <td>
                                                <asp:Label runat="server" ID="SodierName" Text='<%#Eval("SodierName") %>'></asp:Label>
                                            </td>
                                            <td>
                                                亲属名称：
                                            </td>
                                            <td>
                                                <asp:Label runat="server" ID="Name" Text='<%#Eval("Name") %>'></asp:Label>
                                            </td>
                                            <td>
                                                关系：
                                            </td>
                                            <td>
                                                <asp:Label runat="server" ID="Relation" Text='<%#Eval("Relation") %>'></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                来队时间：
                                            </td>
                                            <td colspan="5">
                                                <%# Eval("StartDate")%>--<%#Eval("EndDate")%>
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </asp:DataList>
                            <div>
                                病号处理情况：<asp:Label runat="server" ID="SickCircs"></asp:Label>
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle HorizontalAlign="Left" />
            </asp:GridView>
        </div>
        <div runat="server" id="请假外出休假" style="padding: 10px 0px;">
            <asp:GridView runat="server" ID="gvLeave" Caption="<span>各中队请假外出休假情况查看</span>" OnRowDataBound="gvLeave_RowDataBound">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:Label runat="server" ID="ID"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="单位名称">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblDepartment"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="情况查看">
                        <ItemTemplate>
                            <asp:DataList runat="server" ID="DL" Width="100%">
                                <ItemTemplate>
                                    <table width="100%" style="border-collapse: collapse; border-color: #ccc; border-width: 0px;
                                        border-bottom: solid 1px #ccc000; padding: 0px; margin: 0px;">
                                        <tr>
                                            <td style="width: 15%">
                                                姓名：
                                            </td>
                                            <td style="width: 20%">
                                                <%# Eval("Name")%>
                                            </td>
                                            <td style="width: 15%">
                                                职务：
                                            </td>
                                            <td style="width: 20%">
                                                <%# Eval("Duty")%>
                                            </td>
                                            <td style="width: 15%">
                                                外出证号：
                                            </td>
                                            <td style="width: 20%">
                                                <%# Eval("LeaveCardID")%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                时间天数：
                                            </td>
                                            <td>
                                                <%# Eval("DayCount") %>
                                            </td>
                                            <td>
                                                超误（天数）：
                                            </td>
                                            <td>
                                                <%#Eval("OverTime")%>
                                            </td>
                                            <td>
                                                准假人：
                                            </td>
                                            <td>
                                                <%# Eval("Approver")%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                时间：
                                            </td>
                                            <td colspan="5">
                                                <%# Eval("StartDate")==null?"":Convert.ToDateTime(Eval("StartDate")).ToString("MM-dd hh:ss")%>--<%#  Eval("EndDate") == null ? "" : Convert.ToDateTime(Eval("EndDate")).ToString("MM-dd hh:ss")%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                事由：
                                            </td>
                                            <td colspan="5">
                                                <%#Eval("Reason")%>
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                                <SeparatorTemplate>
                                </SeparatorTemplate>
                            </asp:DataList>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle HorizontalAlign="Left" />
            </asp:GridView>
        </div>
        <div runat="server" id="上级通知及其它重要事项" style="padding: 10px 0px;">
            <asp:GridView runat="server" ID="gvOther" Caption="<span>各中队上级通知及其它重要事项</span>" OnRowDataBound="gvOther_RowDataBound">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:Label runat="server" ID="ID"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="单位名称">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblDepartment"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="详细情况">
                        <ItemTemplate>
                            <%# Eval("Others")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle HorizontalAlign="Left" />
            </asp:GridView>
        </div>
    </div>
    <div style="padding: 2px 6px; border: solid 1px #FEDBB5; margin: 4px 0; background-color: #FFFCDC">
        <table width="100%">
            <tr>
                <td style="width:80px">
                    未填写中队：
                </td>
                <td style="table-layout: fixed">
                    <asp:Label runat="server" ID="lblDeparment"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
